package net.siufung.web.xss.properties;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author 陈建峰
 * @date 2022/10/9 10:23 上午
 * @since V1.0.0
 */
@Getter
@Setter
@ConfigurationProperties(XssProperties.PREFIX)
public class XssProperties {

    public static final String PREFIX = "xss";

    /**
     * 开启xss
     */
    private Boolean enabled = false;
    /**
     * 排除拦截的Url
     */
    private String[] excludeUrls = new String[]{};
    /**
     * 过滤路径
     */
    private String[] urlPatterns = new String[]{"/**"};



}
